Method for detecting reorgination of barcodes

ABSTRACT

A method for detecting reorigination of barcodes ( 12 ) includes providing a multisegment barcode which contains data; capturing an image of the multisegment barcode; locating the barcode in the image; decoding the barcode; detecting individual segments in the multisegment barcode; and authenticating the barcode if the individual segments match the original barcode.

CROSS REFERENCE TO RELATED APPLICATIONS

Reference is made to commonly-assigned copending U.S. patent application Ser. No. 13/690,180, filed Nov. 30, 2012, entitled SYSTEM FOR DETECTING REPRODUCTION OF BARCODES, by Pawlik et al.; and U.S. patent application Ser. No. 13/690,161, filed Nov. 30, 2012, entitled DECODER FOR BARCODES WITH ANTI-COPY FEATURE, by Pawlik et al.; and U.S. patent application Ser. No. 13/864,501, filed Apr. 17, 2013, entitled SYSTEM FOR DETECTING REORIGINATION OF BARCODES, by Pawlik et al.; the disclosures of which are incorporated herein.

FIELD OF THE INVENTION

This invention relates in general to authentication of objects and more particularly relates to prevention of authentication of objects which have been copied.

BACKGROUND OF THE INVENTION

U.S. patent application Ser. Nos. 13/690,161 and 13/690,180 offer means to distinguish originals from barcodes copied by direct reproduction. A second method of creating a second barcode that holds identical data to the original barcode is to scan the code and recreate a new barcode that encodes the same data. This recreation can, for example, be achieved by scanning the code using a smart phone or barcode reader, opening a barcode creation software on a PC, copying the code information from the smart phone to the pc and creating a barcode with the same information. While this copy process will create a code that holds the same information as the original code, there are ways to distinguish the original from the recreated barcode that revolve around restricting the acceptable formatting of the barcode.

SUMMARY OF THE INVENTION

Briefly, according to one aspect of the present invention a method for detecting reorigination of barcodes includes providing a multisegment barcode which contains data; capturing an image of the multisegment barcode; locating the barcode in the image; decoding the barcode; detecting individual segments in the multisegment barcode; and authenticating the barcode if the individual segments match the original barcode.

The invention and its objects and advantages will become more apparent in the detailed description of the preferred embodiment presented below.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a schematic of a device used to scan an image containing a barcode.

FIG. 2 shows an example of a barcode printed with a copy-evident feature.

FIG. 3 shows the barcode of FIG. 2 after copying on a black and white photocopier.

FIG. 4 shows a graph comparing original and photocopied barcodes.

FIG. 5 shows a flowchart illustrating the coding and authentication process.

FIG. 6 shows normal encoding.

FIG. 7 shows encoding as separate strings.

DETAILED DESCRIPTION OF THE INVENTION

The present invention will be directed in particular to elements forming part of, or in cooperation more directly with the apparatus in accordance with the present invention. It is to be understood that elements not specifically shown or described may take various forms well known to those skilled in the art.

Barcodes on packaging and publications are widely used by manufacturers and publishers to associate identity data with an item. The term barcode covers a variety of code types including quick response codes (QR codes).

Barcode scanners can be used to decode and read this data in the supply chain and marketplace. In many cases, item barcodes are unique for each item and, when used with a track and trace database, provide the manufacturer, publisher, or authorities a means of tracing the origin of a product and tracking its progress through the distribution system. Item level serialization allows manufacturers and publishers to use barcodes, particularly barcodes to support product recalls, and to combat counterfeiting and diversion by checking on the authenticity and e-pedigree of the product, publication or document. When used in this manner, it is particularly important to verify that the barcode being read is an authentic barcode on an authentic item, and that it has not been copied and reprinted on a counterfeit item, or on an authentic item that has been diverted outside of the authorized supply chain.

Today, most mobile phones are equipped with cameras and mobile applications which allow the user to easily scan barcodes anytime and anywhere, with a device they carry with them in their pocket. Manufacturers and publishers use barcodes, for example the “Quick Response” or QR barcode to provide consumers, retailers, and investigators a convenient method to obtain information with additional product data and to easily link to product-related websites. Mobile phones equipped with cameras can also be used to decode data or web site links which can be used to verify the authenticity and e-pedigree of the product, publication or document.

As economic and safety-related threats from counterfeit and diverted product become more prevalent, there is an increasing need for a product authentication methods anyone can use. One such approach uses mobile phones equipped with cameras and software to decode barcodes and to verify the authenticity and e-pedigree of the item containing the barcode based on the decoded data (including data on associated websites). In order for this approach to be effective, it is necessary to ensure that the barcode being read is an authentic barcode on an authentic item, and that it has not been copied and reprinted on a counterfeit item, or on an authentic item that has been diverted outside of the authorized supply chain.

The present invention provides a method of ensuring that a printed barcode, when imaged by an imaging device such as a mobile phone camera and subsequently decoded, is the original barcode and not a copy. In this invention, a barcode containing data is printed on or near a copy-evident background, the barcode is read to extract the data by capturing an image of the barcode with an imaging device such as a mobile phone camera, locating and decoding the barcode, using the registration locators in the barcode image to locate and detect copy-evident features of specific regions of the copy-evident background, and, upon successful detection of the copy-evident features, authenticating the barcode as an original barcode and not a copy. In a specific embodiment of this invention, the barcode itself is printed with a fill comprised of a copy-evident color or pattern.

The copy-evident background or fill could be made up of a void pantographs pattern. Void pantographs are commonly used as backgrounds on financial documents such as checks. The void pantograph patterns are designed to exploit the limitations in resolution of copiers and scanners. In one common void pantograph pattern called big-dot-little-dot, the small dots are below the resolution threshold of the copier and become lighter when copied. This increases the contract between the small dots and the large dots and the “void” message in the original document becomes obvious in the copy. A variety of other void pantograph approaches exist and are continually being improved as copier and scanner technology advances are made.

Color can also be used as a copy-evident feature. In the simplest embodiment of this approach, any color that is present in the background or barcode, is copy-evident, if it is copied with a black and white copier. More complicated approaches to using color as a copy-evident tool include the use of special inks that change color with special stimuli, such as thermochromic ink (heat), or uv-fluorescent inks (UV light). These stimuli affect the color of the copy-evident feature and must be applied when an image of the copy-evident feature is captured. This is difficult if the image is captured with a scanner or copier, but can be done if the image is captured with a mobile phone camera.

Referring now to FIG. 1 which shows a schematic of a device used to scan an item 10 that contains a barcode 12 and copy-evident features 14. An image of this item is captured by an image sensor 20 and imaging optics 22 of a digital camera 16. The image data is processed by a microprocessor 24 using an algorithm stored in memory 26. The processing step can include decoding of the barcode 12 and evaluation of the copy-evident features 14. The microprocessor also controls a display 30 where a preview image and information about the decoded data can be displayed. The camera also contains a wireless interface 28 that allows the microprocessor to communicate with a web-based data-processing server 40 via a wireless data link 32.

FIG. 2 shows an example of a barcode printed near copy-evident features. The barcode 100 is of the type “Quick Response” (QR) and is surrounded by a copy-evident background 14 consisting of four patches exhibiting two distinct image patterns. Areas 110 are coarse dot patterns, areas 112 exhibit a uniform grey value. The average brightness of the two patterns is approximately equal. The camera 16, shown in FIG. 1, determines the average brightness of the patches by capturing an image and using the microprocessor 24 to calculate the average pixel value in an area that encompasses a substantial fraction of each patch. Of particular importance for this invention is the difference in average brightness of the two distinct patterns.

It is be beneficial to locate the patches at a predetermined distance with respect to the finder patterns 102 of the barcode shown in FIG. 2. The locations of the finder patterns, which are provided by a barcode decoding algorithm, are used as a guide to locate the four patches. Finder patterns are a feature of all barcode types and allow the decoding algorithm to find the barcode in an image and to determine its dimensions patterns are the features labeled 102. In a Datamatrix barcode, the finder pattern is a rectangle formed by two orthogonal solid lines and two alternating light and dark lines opposite the solid lines.

FIG. 3 shows the barcode incorporating anti-copy features after copying on a black and white copier. Such devices are often engineered to maximize image contrast of the copy by using a thresholding technique that that creates a binary (black and white) image. This image manipulation reproduces halftone images well, but does not accurately reproduce true grayscale images. As can be seen by comparing FIGS. 2 and 3, the copy process affects the two patterns 110 and 112 differently. While the large dot patterns 110 are reproduced accurately, the uniform grey areas 112 are below the threshold and reproduced as white. Therefore, an evaluation of the average brightness of the two patterns of the copy will yield a large difference in brightness. Consequently, the evaluation of the brightness difference can be used to distinguish the original from the copy by comparing it to expected brightness ranges. Although brightness is used in this example, other image attributes such as image noise and color may be used as long as they can be calculated from the pixel data of a digital image of the copy-evident features and as long as they are substantially different for the original and the copy.

FIG. 2 may be printed in multiple colors and the copy distinguished from the original by verifying the presence of the original color values at specified distances from the finder patterns within the barcode.

FIG. 4 shows data produced by evaluating the average pixel value of areas 110 and 112 using digital images of the original and the copied barcode incorporating anti-copy features. In this example, the mean pixel value of the two areas 110 as shown in FIGS. 2 and 3 is approximately equal for the original and the copy whereas it is different for the two areas 112. One can define a parameter DIFF=mean pixel value of areas 112−mean pixel value of areas 110. This parameter is 3.8 for the original and 29.6 for the copy. Therefore, a threshold can be defined that separates the original and copy. For any subsequent image of the barcode incorporating anti-copy features the parameter can be calculated and, if it is above the threshold, the barcode is rejected.

An additional embodiment for separating the copied barcode from the original is to analyze the color of the barcode itself or of patches at specified distances from the finder patterns within the barcode. For example, if the barcode it is printed using a non-black ink, a black and white copy will not reproduce the color accurately. For color copies, the barcode can be printed with certain inks that are not well reproduced by the yellow, magenta, and cyan color components of a color copier. One examples of such inks is neon pink.

Furthermore, one could print the barcode using an ink that changes color when subjected to illumination with a specialized light source like ultraviolet light. In a simple example, the barcode 12 is printed using red ink and the location of the finder pattern is used to determine the RGB color coordinates of the pixels in the center of the finder pattern. In this example, the RGB values of the digital image obtained from the original are RGB (117, 29, 60) whereas the copy has RGB values of (38, 40, 46). In order to identify a barcode as original one would look for a substantially larger R value in the RGB color coordinate which is clearly evident in the relevant data of the image of the original whereas the RGB values of the analogous data of the image of the copy are similar, indicating a grey pixel color.

FIG. 5 shows a flow chart that illustrates the process for decoding and authenticating a barcode using the anti-copy feature in this invention.

The preceding example offered means to distinguish original barcodes from barcodes copied by direct reproduction. A second method of creating a counterfeit barcode that holds identical data to the original barcode is to scan the code and recreate a new barcode that encodes the same data. This recreation can, for example, be achieved by scanning the code using a smart phone or barcode reader, opening a barcode creation software on a PC, copying the code information from the smart phone to the PC and creating a barcode with the same information.

While this copy process will create a code that holds the same information as the original code, there are ways to distinguish the original from the recreated barcode that revolve around restricting the acceptable formatting of the barcode. In the case of a QR code there are three parameter that are used in the code generation process. They are error correction level (S, M, Q, H), code size (also called version, dimension) of the code, and code mask (1-8). The error correction level determines the percentage of the code space that is used for error correction. The code size limits the total amount of data that can be encoded. The code mask is a regular binary pattern of 1 and 0 of the same dimension as the code matrix. It is convoluted with the code pattern excluding the finder patterns and code format bits such that the code cells are reversed (e.g. black replaced by white) when the code mask at this location is 0, and cells are not reversed when the code mask at this code location is 1.

Selection of the proper mask serves to maximize decodability. Of these three parameters, the first two can usually be selected manually, but the third is set automatically with all current QR code generating PC or web-based software. If one, therefore, uses a QR code generating algorithm that predetermines the mask parameter and combines it with a proprietary QR code decoder that only decodes those QR codes that match the predetermined mask parameter, the chance for a counterfeiter to generate a valid QR code is reduced by a factor of eight.

In addition to this countermeasure, one can exploit the feature of QR codes that allows concatenation of messages of varying length. For example, the number “16529426” would normally be encoded as a single string of numbers of the length 8 as shown in the QR code 120 in FIG. 6. However, it is also possible to encode this data as separate strings of numbers 122 of varying length for example “1” followed by “6” followed by “529426.” This produces the QR code 122 shown in FIG. 7. The two methods of encoding the same information lead to completely different QR code patterns and although the QR code decoding algorithm will ultimately deliver the same result, the raw data of the decoded QR code is different. In FIG. 6, the raw data of the decoded QR code can be represented by the following data sequence:

[408](31)(36)(35)(32)(39)(34)(32)(36). The number in square brackets represents the prefix for a string of 8 characters. The following 8 round brackets are the ASCII codes of the encoded string, e.g., 31=“1”, 36=“6”. Note that the round and square brackets are only a visual guide and not part of the raw data itself. For the barcode in FIG. 7, the raw data sequence of the decoded barcode is [401](31)[401](36)[406](35)(32)(39)(34)(32)(36). In this case, the encoded string is broken into 3 sub strings of lengths 1, 1 and 6 preceded by the prefixes [401], [401] and [406], respectively. The formatted output derived from this raw data will be the same number string, i.e., “16529426” in either case. One can therefore, program a proprietary QR code decoding algorithm such that it will only accept QR codes as authentic when the raw data shows that the code is broken into sub-strings of numbers of a predetermined length that matches a set of predetermined expectations. A standard QR code encoder that a counterfeiter would use to recreate a QR code from scanned data of the original QR code will encode the message as a single string of numbers 120. Therefore the proprietary QR code decoder will be able to distinguish the recreated QR code from the original QR code even if the other parameters (error correction level, code size and code mask) are the same in the original and recreated code. Although numbers are used in this example, the encoding scheme of this invention is applicable to all characters that can be encoded in a QR code.

Within a single error correction methodology, the above methods of encoding the QR code in a non-standard way do not affect the degree of error correction. Therefore, the code retains its readability with barcode scanners. An alternative method of deliberately inserting false cells into the code and teaching the proprietary QR code decoder to look for these engineered defects would also reduce the allowed amount of other defects (from e.g. printing) that could be present in the code before it becomes unreadable. This is undesirable.

The invention has been described in detail with particular reference to certain preferred embodiments thereof, but it will be understood that variations and modifications can be effected within the scope of the invention.

PARTS LIST

-   10 item -   12 barcode -   14 copy-evident features -   16 camera (image or capture device) -   20 image sensor -   22 imaging optics -   24 microprocessor -   26 memory -   28 wireless interface -   30 display -   32 wireless data link -   40 web-based data processing -   100 barcode -   102 finder patterns -   110 area (pattern) -   112 area (pattern) -   120 QR code generated using default encoding of the code message as     a single string of numbers -   122 QR code generated using encoding of the code message as three     separate strings of numbers 

The invention claimed is:
 1. A method for detecting reorigination of multisegment barcodes comprising: providing a multisegment barcode having individual segments each comprising strings of characters each string having a length; capturing an image of the multisegment barcode; locating the multisegment barcode in the image; decoding the multisegment barcode; detecting individual segments in the multisegment barcode; and authenticating the multisegment barcode if the characters and the length of the string of each of the individual segments match the characters and the length of the string of each segment of an original barcode.
 2. The method of claim 1 wherein the image is captured by an image capture device.
 3. The method of claim 2 wherein the image capture device is selected from a group consisting of a cell phone, a digital camera, a barcode reader, a document scanner or a tablet.
 4. The method of claim 1 wherein the multisegment barcode is located in the image by a microprocessor.
 5. The method of claim 4 wherein microprocessor and is housed in an image capture device.
 6. The method of claim 1 wherein the multisegment barcode is a Quick Response (QR) code.
 7. The method of claim 1 further comprising: authenticating the multisegment barcode on site by means of a computer or other computational device.
 8. The method of claim 1 further comprising: transmitting the data obtained from the multisegment barcode, an image of the multisegment barcode, or both to a remote location for authentication.
 9. The method of claim 8 further comprising: transmitting a confirmation of authentication from the remote location to the authentication site.
 10. A method for detecting reorigination of barcodes comprising: capturing an image of a multisegment barcode, the multisegment barcode having individual segments each comprising strings of characters each string having a length; locating the multisegment barcode in the image; decoding the multisegment barcode; detecting individual segments in the multisegment barcode; and authenticating the barcode if the characters and the length of the string of each of the individual segments match the characters and the length of the string of each of an original barcode. 